package pack2;
import pack1.*;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2023-02-28
 * Time:20:29
 */
public class Class2 {
    Class2(){
        System.out.println(new Class1().a);;
        Class1 cls1 = new Class1();
        //Class2无法访问第3行的name变量
       // System.out.println(cls1.name);
    }
     ArrayList<String> eJava(){
        ArrayList<String>  ass= new ArrayList<String>(1);

         return ass;
     }
    String  eJava(){
        return "abc";
    }
    public static void main(String[] args) {

    }
}
